package com.setting.ty;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

@Configuration
@EnableAsync
@Component
public class ExecutorConfig {

    @Autowired
    private DataSource dataSource;

    public ExecutorConfig() {
    }
    @Bean
    public FilterRegistrationBean setFilterHtml(){
        FilterRegistrationBean filterBean = new FilterRegistrationBean();
        return filterBean;
    }



}

